import { UPDATEPAGECHATPAGE } from '../types/pagechatpage'
import { createAction } from 'redux-actions'

const formatdata = entry => {
  return {
    text: '开始啪啪啪'
  }
}

export const DOREQUESTCHATPAGE = createAction(UPDATEPAGECHATPAGE, payload => {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve({
        ...formatdata()
      })
    }, 1000)
  })
})
